package com.h.log.facade;

public class FacadeClient implements Light{
    private LivingRoom livingRoom = new LivingRoom();
    private BedRoom bedRoom = new BedRoom();
    private Hall hall = new Hall();

    @Override
    public void on() {
        livingRoom.on();
        bedRoom.on();
        hall.on();
    }

    @Override
    public void off() {
        livingRoom.off();
        bedRoom.off();
        hall.off();
    }
}
